import request from '@/utils/request'

// 查询客户信息列表
export function listSysCrmKhgl(query) {
  return request({
    url: '/system/crmkhgl/list',
    method: 'get',
    params: query
  })
}

// 查询客户信息详细
export function getSysCrmKhgl(khId) {
  return request({
    url: '/system/crmkhgl/' + khId,
    method: 'get'
  })
}

// 新增客户信息
export function addSysCrmKhgl(data) {
  return request({
    url: '/system/crmkhgl',
    method: 'post',
    data: data
  })
}

// 修改客户信息
export function updateSysCrmKhgl(data) {
  return request({
    url: '/system/crmkhgl',
    method: 'put',
    data: data
  })
}

// 删除客户信息
export function delSysCrmKhgl(khId) {
  return request({
    url: '/system/crmkhgl/' + khId,
    method: 'delete'
  })
}


export function getInitParams() {
  return request({
    url: '/system/crmkhgl/getInitParams',
    method: 'get'
  })
}

export function getCities(query) {
  return request({
    url: '/system/crmkhgl/getCities',
    method: 'get',
    params: query
  })
}